cmake_minimum_required(VERSION 3.3)
include( "assert.cmake")

set( CMAKE_LEGACY_CYGWIN_WIN32 0)
project(hello)
set(list 1 2 3 4 5)

foreach(var ${list})
            message(${var})
endforeach()

option(use_test "should use test")
message(${use_test})

set(switch 1)
if(switch EQUAL 1)
  message("switch on")
elseif(switch EQUAL 2)
  message("switch of")
endif()

set(current_time "1:2:4" )
function(getTime _time)
    set(${_time} "1:2:3" PARENT_SCOPE)
endfunction()
set(${_time} "1:2:3" )

getTime(current_time)
message(${current_time})

#assert(IS_OK "compile file")

find_library(hasLib trans-dsl)
message(${hasLib})

file(DOWNLOAD "http://10.93.73.27:8000/README.md" "./readme")

execute_process(COMMAND "ls")

set(files hello.c)
add_executable(hello ${files})
